cmake_minimum_required(VERSION 3.10)

# set the project name
# project(Tutorial)
project(StrmBMP_Handle VERSION 1.0)

# specify the C++ standard
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CXX_FLAGS "-g")

add_subdirectory(handleDemo)

find_package(nlohmann_json REQUIRED)
find_package(wxWidgets REQUIRED COMPONENTS net core base)
find_package(ICU COMPONENTS data uc i18n io REQUIRED)
find_package(fmt REQUIRED)
include(${wxWidgets_USE_FILE})
# add the executable
add_executable(StrmBMP_Handle
  src/App.cpp
  src/CompressFrame.cpp
  src/DecompFrame.cpp
  src/MainFrame.cpp
  core/StrmBMP_reader.cpp
  core/AttributeProxy.cpp
  core/StrmBMP_writer.cpp
  core/grayBMPLoad.cpp
)
target_link_libraries(StrmBMP_Handle 
  ${wxWidgets_LIBRARIES} 
  ${ICU_LIBRARIES}
  fmt::fmt
  nlohmann_json::nlohmann_json
)
